@echo off
echo Setting up pyenv environment variables...

:: 设置pyenv环境变量
set PYENV_ROOT=%USERPROFILE%\.pyenv\pyenv-win
set PYENV_HOME=%USERPROFILE%\.pyenv\pyenv-win
set PYENV=%USERPROFILE%\.pyenv\pyenv-win

:: 添加到PATH
set PATH=%PYENV_ROOT%\bin;%PYENV_ROOT%\shims;%PATH%

echo PYENV_ROOT set to: %PYENV_ROOT%
echo PYENV_HOME set to: %PYENV_HOME%
echo.
echo Current pyenv version:
pyenv --version
echo.
echo Available Python versions:
pyenv versions
echo.
echo Current Python version:
python --version
echo.
echo Python location:
where python
echo.
echo Environment ready! You can now:
echo 1. Install Python: pyenv install 3.9.2
echo 2. Set global version: pyenv global 3.9.2
echo 3. Run Django: python manage.py runserver 0.0.0.0:8000
echo.
cmd /k 